﻿<Window x:Class="C4F.DevKit.P2PPictureShare.PictureShareWpf.ConfigurationWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PictureShare Configuration" Height="237" Width="399" SizeToContent="WidthAndHeight" ResizeMode="NoResize" Opacity="1" WindowStyle="ThreeDBorderWindow" BorderBrush="{x:Null}" Foreground="#FF000000" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	<Window.Resources>
		
	</Window.Resources>
  
	<Window.Background>
		<DynamicResource ResourceKey="{x:Static SystemColors.WindowBrushKey}"/>
	</Window.Background>
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="80" />
      <!-- '*' value for width represents remaining space -->
      <ColumnDefinition Width="167" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <!-- Create 7 rows -->
      <RowDefinition Height="Auto" MinHeight="30" />
      <RowDefinition Height="Auto" MinHeight="30" />
      <RowDefinition Height="Auto" MinHeight="30" />
      <RowDefinition Height="Auto" MinHeight="30" />
      <RowDefinition Height="Auto" MinHeight="30" />
      <RowDefinition Height="Auto" MinHeight="30" />
      <RowDefinition Height="Auto" MinHeight="31" />
    </Grid.RowDefinitions>

    <!-- Row 0 (first row) -->
    <Label HorizontalAlignment="Left" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontStyle="Normal" FontWeight="Normal" Content="Incoming pictures folder:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" Margin="8,0,0,0" Grid.Column="1"/>
    <!-- buttonSelectCache -->
    <Button Click="OnSelectCacheFolder"  x:Name="buttonSelectCache" Content="Select" FontWeight="Normal" d:LayoutOverrides="Margin" Margin="0,0,3.57,4" Width="75" Height="25"/>

    <Label HorizontalAlignment="Left" VerticalContentAlignment="Center" Grid.Row="1" FontFamily="Segoe UI" FontStyle="Normal" FontWeight="Normal" Content="Outgoing pictures folder:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" d:LayoutOverrides="HorizontalAlignment" Margin="8,0,0,0" Grid.Column="1"/>
    <!-- buttonSelectShare -->
    <Button Click="OnSelectShareFolder" Content="Select" x:Name="buttonSelectShare" Grid.Row="1" HorizontalAlignment="Right" Width="75" d:LayoutOverrides="HorizontalAlignment, Margin" Margin="0,0,3.57,8" Height="25"/>

    <Label HorizontalAlignment="Left" VerticalContentAlignment="Center" Grid.Row="2" FontFamily="Segoe UI" FontStyle="Normal" FontWeight="Normal" Content="Scale outgoing pictures to:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" d:LayoutOverrides="HorizontalAlignment" Margin="8,0,0,0" Grid.Column="1"/>

    <Label HorizontalAlignment="Left" VerticalContentAlignment="Center" Grid.Row="4" FontFamily="Segoe UI" FontStyle="Normal" FontWeight="Normal" Content="P2P channel name:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" d:LayoutOverrides="HorizontalAlignment" Margin="8,0,0,0" Grid.Column="1"/>

    <Label HorizontalAlignment="Left" VerticalContentAlignment="Center" Grid.Row="5" FontFamily="Segoe UI" FontStyle="Normal" FontWeight="Normal" Content="P2P channel password:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" d:LayoutOverrides="HorizontalAlignment" Margin="8,0,0,0" Grid.Column="1"/>

    <!-- buttonSavePictureSize -->
    <Button Click="OnSaveSettings" x:Name="buttonSaveSettings" Grid.Row="6" Grid.Column="1" Content="Save Settings" Margin="8,4,80,0" d:LayoutOverrides="Height" VerticalAlignment="Top" Height="25"/>
  	<TextBox x:Name="textBoxCacheFolder" VerticalContentAlignment="Center" Opacity="0.8" Background="#FFFFFFFF" BorderThickness="1,1,1,1" BorderBrush="{x:Null}" HorizontalAlignment="Stretch" Margin="8,0,128,0" Grid.Column="2" Foreground="#FF000000"/>
  	<TextBox x:Name="textBoxShareFolder" VerticalContentAlignment="Center" Opacity="0.8" Background="#FFFFFFFF" BorderThickness="1,1,1,1" BorderBrush="{x:Null}" HorizontalAlignment="Stretch" Margin="8,0,128,0" Foreground="#FF000000" Grid.Column="2" Grid.Row="1"/>
  	<TextBox x:Name="textBoxPictureSize" VerticalContentAlignment="Center" Grid.Row="2" Grid.Column="2" Opacity="0.8" Background="#FFFFFFFF" BorderThickness="1,1,1,1" BorderBrush="{x:Null}" HorizontalAlignment="Stretch" Margin="8,0,128,0" Foreground="#FF000000"/>
  	<TextBox x:Name="textBoxP2PAddress" VerticalContentAlignment="Center" Grid.Row="4" Grid.Column="2" Opacity="0.8" Background="#FFFFFFFF" BorderThickness="1,1,1,1" BorderBrush="{x:Null}" HorizontalAlignment="Stretch" Margin="8,0,128,0" Foreground="#FF000000"/>
  	<TextBox x:Name="textBoxP2PPassword" VerticalContentAlignment="Center" Grid.Row="5" Grid.Column="2" Opacity="0.8" Background="#FFFFFFFF" BorderThickness="1,1,1,1" BorderBrush="{x:Null}" HorizontalAlignment="Stretch" Margin="8,0,128,0" Foreground="#FF000000"/>
  	<Border Margin="2,2,7,0" VerticalAlignment="Top" Height="3" Grid.ColumnSpan="3" Grid.Row="3"/>
  </Grid>
</Window>
